# -*- coding: utf-8 -*-
"""
Created on Wed May 14 08:04:58 2025
    FIFO先进先出
@author: Bradley
"""
import queue        # 导入queue模块
s1='我是雁南山！'
FIFO=queue.Queue()
i=len(s1)-1
while i>=0:
    FIFO.put(s1[i])
    i-=1
while not FIFO.empty():
    print(FIFO.get())
